import com.westos.dao.UserDao;
import com.westos.domain.User;

/**
 * @Description:
 * @Author: 大强
 * @CreateTime: 2020/1/8
 * @Company: 西部开源教育科技有限公司
 */
public class MockUserDao extends UserDao {

    private boolean findUsernamevalue;
    private User loginvalue;


    @Override
    public boolean findUsername(String username) throws Exception {
        return findUsernamevalue;
    }

    @Override
    public void registerUser(User user) throws Exception {

    }

    @Override
    public User login(User user) throws Exception {
        return loginvalue;
    }

    public boolean isFindUsernamevalue() {
        return findUsernamevalue;
    }

    public void setFindUsernamevalue(boolean findUsernamevalue) {
        this.findUsernamevalue = findUsernamevalue;
    }

    public User getLoginvalue() {
        return loginvalue;
    }

    public void setLoginvalue(User loginvalue) {
        this.loginvalue = loginvalue;
    }
}
